package com.control.qct.businesssteward.adapter;

import android.support.annotation.Nullable;

import com.control.qct.businesssteward.R;
import com.control.qct.businesssteward.model.InventoryStatisticModel;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by Administrator on 2017/12/28 0028.
 */

public class InventoryStatisticAdapter extends BaseQuickAdapter<InventoryStatisticModel, BaseViewHolder> {
    public InventoryStatisticAdapter(@Nullable List<InventoryStatisticModel> data) {
        super(R.layout.rv_inventory_statistical_item, data);
    }

    @Override
    protected void convert(BaseViewHolder holder, InventoryStatisticModel item) {
        holder.setText(R.id.tv_goods_type_name, item.getName()).setText(R.id.tv_stockout_statistic, item.getNum1() +
                "").setText(R.id.tv_excess_statistic, item.getNum2() + "");
    }
}
